<template>
  
</template>

<script>
import { mapState, mapGetters, mapMutations, mapActions } from "vuex";
export default {
  components: {
  },
  data() {
  	return {
  		scanType: '',
  		result: '',
		activeIndex: 0
  	}
  },
  methods: {
  	rightClick() {
          // 允许从相机和相册扫码
          uni.scanCode({
  	        success: (res) => {
  		        this.scanType = res.result
  		        this.result = res.result
  	        }
          });
      }
  },
 
  onShow() {
    this.rightClick();
  },

};
</script>

<style lang="scss">
page {
  background-color: #ffffff;
}

</style>
